|
|
|
|
|
|
|
graphic capabilities. This chapter explains generally how to use the API and discusses the complexities of passing parameters to API functions. It then describes some API functions, like Polygon and FloodFill, which are particularly useful in graphics programming. This chapter also discusses metafiles, which are files that allow a program to store graphic commands for later use. |
|
|
|
|
|
|
|
|
Chapter 3, Advanced Color, explains how to deal with bitmaps and color on your system. It explains different color modes available to you and tells how you can change your system's color mode. It also tells how to manipulate device-independent bitmaps (DIBs) and device-dependent bitmaps. |
|
|
|
|
|
|
|
|
Chapter 3 also talks about the color palettes used by the more restrictive color modes. The chapter explains how palettes are supposed to work, but the support for color palettes seems to be slowly slipping away. What was reasonable in Visual Basic 4 became harder in Visual Basic 5 and 6. At the same time, the reason for color palettes (high memory prices) has been fading. Color palettes still exist, but they are extremely confusing and not really necessary with today's memory prices. |
|
|
|
|
|
|
|
|
Chapter 4, Advanced Text, deals with advanced text issues. You may not often think of it this way, but text is graphic, too. This chapter deals with such issues as text color, size, proportion, positioning, and orientation. It explains how to use the CreateFont API function to print text at an angle and how to make text follow a circular or curving path. |
|
|
|
|
|
|
|
|
Chapter 5, Printing, discusses printing in Visual Basic. It explains printing fundamentals, low- and high-resolution printing, text wrapping across lines and pages, and print preview. |
|
|
|
|
|
|
|
|
Part Two
Image Processing |
|
|
|
|
|
|
|
|
Part Two covers techniques for manipulating bitmapped images. Using the information presented in these chapters, you will be able to add simple and not-so-simple images to your programs. |
|
|
|
|
|
|
|
|
Chapter 6, Point Processes, explains methods for manipulating images one pixel at a time. Using these techniques you can adjust such image attributes as color balance, brightness, and contrast. |
|
|
|
|
|
|
|
|
Chapter 7, Area Processes, covers procedures that modify images using the pixels in an area. It shows how to use filters to soften, sharpen, or emphasize edges in an image. It also describes morphing operations you can use to resize, rotate, warp, and otherwise deform an image. |
|
|
|
|
|
|
|
|
The chapters in Part Three explain how you can add animation to your Visual Basic programs. |
|
|
|
|
|
|
|
|
Chapter 8, Bitmap Animation, explains animation basics. It shows how to use a series of bitmaps to provide the illusion of motion. It explains several different methods for timing images to provide the smoothest animation possible. |
|
|
|
|
|
|
|
|
Chapter 9, Advanced Animation, describes several different ways a program can control an animation sequence. It tells how to use techniques such as simulation, scripting, and |
|
|
|
|
|